<?php if (!defined('THINK_PATH')) exit();?><html>

	<head>
		<meta charset="UTF-8" />
		<!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<script>
			var flag = 0;
			$(document).ready(function() {
				$("form").submit(function() {
					var name = $("#name").val();
					var phone = $("#phone").val();
					if (name == "" || phone == "") {
						alert("信息不能为空!");
						return false;
					}
					$("#submit").attr("disabled", true);
				});
			});
		</script>

	</head>

	<body>
		<div class="container">
			<form action="<?php echo U('Index/add');?>" method="post" class="form-horizontal">

				<h3 class="text-center">填写你的信息</h3>

				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 col-xs-2 control-label">姓名</label>
					<div class="col-sm-10 col-xs-10">
						<input id="name" type="input" class="form-control" name="name" placeholder="请输入你的姓名">
					</div>
				</div>

				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 col-xs-2 control-label">电话</label>
					<div class="col-sm-10 col-xs-10">
						<input id="phone" type="input" class="form-control" name="phone" placeholder="请输入你的电话">
					</div>
				</div>
				<input type="hidden" name="openid" value="<?php echo ($info->openid); ?>">
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10 col-xs-offset-2 col-xs-10">
						<button id="submit" type="submit" style="width:100%" class="btn btn-info">提交</button>
					</div>
				</div>
			</form>
		</div>
	</body>

</html>